package com.biz.primus.ms.member.trans;

import com.biz.primus.model.member.vo.NoticeVo;
import com.biz.primus.ms.member.dao.po.Notice;
import com.google.common.base.Function;

/**
 * po转vo
 * @author jun.liu
 * @date 2017年10月23日
 * @reviewer
 * @see
 */
public class NoticeToNoticeVo implements Function<Notice, NoticeVo> {

    @Override
    public NoticeVo apply(Notice input) {
        NoticeVo resp = new NoticeVo();
        resp.setId(input.getId());
        resp.setContent(input.getContent());
        resp.setCreateTimestamp(input.getCreateTimestamp());
        resp.setTitle(input.getTitle());
        resp.setUrl(input.getUrl());
        return resp;
    }

}
